    let data={
    promoterCode:'',
    alipayAccount:'',
    alipayName:'',
    createId:'',
    createTime:'',
    desensitizedAlipayAccount:'',
    desensitizedAlipayName:'',
    id:'',
    msgCode:'',
    phoneNum:'',
    phoneNumMd5:'',
}
    let PromoteInfo
    let phone
    let currentPage = 1;
    let totalPages = null;
    function back(){
    window.location.href = 'withdraw.html'
}
    function getData() {
        const storedData = localStorage.getItem('userData');
        data = JSON.parse(storedData);
        const PromoteInfos = localStorage.getItem('PromoteInfo');
        PromoteInfo = JSON.parse(PromoteInfos);
        var spanElement = document.querySelector('.m_bot');
        spanElement.textContent = PromoteInfo.finishTotal
    }
    function prevBtn(){
        if (currentPage > 1) {
            currentPage--;
            countDown()
        }else{
            alert('当前已是第一页！')
        }
    }
    function nextBtn(){
        if (currentPage < totalPages) {
            currentPage++;
            countDown()
        }else{
            alert('当前已是最后一页！')
        }
    }
    function countDown() {
        $.ajax({
            type: 'GET',
            url: httpUrl+'/api/v1/open/queryByPageForWithdrawal?current='+currentPage+'&size=10&promoterId='+data.id,
            success: function(data) {
                if(data.code=='10000'){
                    const couponList = data.data.records;
                    totalPages=data.data.pages
                    if(couponList.length){
                        var spanElement = document.querySelector('.page_tool');
                        spanElement.style.display = 'block';
                        couponList.forEach(coupon=>{
                            let couponItem = `
                                           <div class="ul">
                                                <div class="li">
                                                    <div class="li_le">
                                                        <span class="li_le_tit">提现金额</span>
                                                        <span class="time" style="margin-top: 5px">${coupon.createTime}</span>
                                                    </div>
                                                    <div class="li_ri">
                                                        <span class="li_le_money">￥${coupon.amount}</span>
                                                        <span class="state" style="margin-top: 5px">${coupon.states}</span>
                                                    </div>
                                                </div>
                                           </div>
                    `;
                            $('.list_tool').append(couponItem);
                        })

                    }else{
                        var spanElement = document.querySelector('.page_tool');
                        spanElement.style.display = 'none';

                    }

                }else{
                    alert(data.msg);
                }

        },
        error: function(xhr, status, error) {
            alert('网络波动，请重试');
        }
    });
}
    getData()

